package cn.itsource.ymcc.feignclient;


import cn.itsource.ymcc.feignclient.fallbackFactory.CourseFeignClientFallbackFactory;
import cn.itsource.ymcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-course",fallbackFactory = CourseFeignClientFallbackFactory.class)
public interface CourseFeignClient {
    @GetMapping("/courseUserLearn/getUserLearn/{courseId}/{userId}")
    public JsonResult getUserLearn(@PathVariable("courseId")Long courseId, @PathVariable("userId")Long userId);
}
